package com.globalwave.base;

import com.globalwave.common.ArrayOrderList;


public class BaseSO implements Cloneable{
    private Integer pageIndex = 1 ;
    private Integer pageSize = 30 ;
    
    private ArrayOrderList orderList ;
    
	public Integer getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
    
	public void addAsc(String name) {
		if (orderList == null) {
			orderList = new ArrayOrderList() ;
		}
		orderList.addAsc(name) ;
    }
    
    public void addDesc(String name) {
    	if (orderList == null) {
			orderList = new ArrayOrderList() ;
		}
    	orderList.addDesc(name) ; ;
    }
    
    public ArrayOrderList getOrderList() {
		return orderList;
	}

    public void setOrderList(ArrayOrderList orderList) {
		this.orderList = orderList;
	}
}
